#include <jni.h>
#include <string>
#include <android/log.h>

#define TAG "NativeEngine" // 这个是自定义的LOG的标识
#define LOGI(...) __android_log_print(ANDROID_LOG_VERBOSE,TAG, __VA_ARGS__)
extern "C"
JNIEXPORT jobjectArray JNICALL
Java_com_handpay_nocardpay_baselibrary_config_NativeEngine_loadResources(JNIEnv *env, jclass type) {
    // TODO
    jstring str;
    //you can ignore this value
    jsize len = 7;
    jobjectArray args = 0;
    char *sa[] = {
            "https://safesft.handpay.cn/hpayMicroView/",
            "WKZF",
            "3.7",
            "safesft.handpay.cn",
            "WKZFAPP",
            "9411bb0a7ad5cf33dbd9ba51a5feedabca6e9874042bac5b2273173c6f2e914e97df6b2c19f91abe2ef767c8ca3204caa29831e9c7c2dc0a0f35c31c9cce37fe8d3fb2ac9c4296e14104b27cef1a47db218bb213b880617f8e449d0f0310dc89627e695114fb197184afa415903be9e92a3b39b553ae078dc42946c81ab06105",
            "10001",
            "20af17kl",
            "https://www.handmart.cn/web/WKZFAPP/Useinfo.html",
            "https://www.handmart.cn/web/WKZFAPP/ServiceAgreements.html",
            "https://www.handmart.cn/web/dist/advert.html",
            "http://intrepay.handmart.cn:8899/hpayDFPaySupport/inside/index",
            "957ddb884bf94b20cf03117d0da60bc82017121158558771",
            "http://ds.handmart.cn/NewApp/Hylogin.aspx",
            "https://intrepay.handmart.cn/hpayDFPaySupport/",
            "1234567890"
    };
    len = sizeof(sa) / sizeof(sa[0]);
    int i = 0;
    args = env->NewObjectArray(len, env->FindClass("java/lang/String"), 0);
    for (i = 0; i < len; i++) {
        str = env->NewStringUTF(sa[i]);
        env->SetObjectArrayElement(args, i, str);
    }
    return args;
}